package blog.open1111.service.impl;

import blog.open1111.dao.LinkDao;
import blog.open1111.entity.Link;
import blog.open1111.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dengwubo on 2017/9/8.
 */
@Service
@SuppressWarnings("all")
public class LinkServiceImpl  implements LinkService{

    @Autowired
    private LinkDao linkDao;

    @Override
    public List<Link> list(Map<String, Object> map) {
        return linkDao.list(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return linkDao.getTotal(map);
    }

    @Override
    public Integer add(Link link) {
        return linkDao.add(link);
    }

    @Override
    public Integer update(Link link) {
        return linkDao.update(link);
    }

    @Override
    public Integer delete(Integer id) {
        return linkDao.delete(id);
    }
}
